package com.ceair.flight.refund.location.model;

import com.ceair.flight.refund.util.DateUtil;
import com.ceair.flight.refund.util.StringUtil;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

public class TicketDO extends BaseDO implements Serializable {

	private static final long serialVersionUID = -8165619010559098707L;
	/** 票id **/
	private Long tktId; 
	/** 出票时间 **/
	private Date tktDate; 
	/** 票号 **/
	private String tktNo; 
	/** 客票状态 **/
	private String tktSt; 
	/** 创建时间 **/
	private Date createDt; 
	/** 操作人id **/
	private String operatorId;  
	/** 旅客id **/
	private Long passengerId;
	/** 飞机订单号 **/
	private String flightOrderNo;
	/** 税项 **/
	private Set<TaxFeeDO> taxFees;
	
	public Long getTktId() {
		return tktId;
	}
	
	public void setTktId(Long tktId) {
		this.tktId = tktId;
	}
	
	public Date getTktDate() {
		return tktDate;
	}
	
	public void setTktDate(Date tktDate) {
		this.tktDate = tktDate;
	}
	
	public String getTktNo() {
		return tktNo;
	}
	
	public void setTktNo(String tktNo) {
		this.tktNo = tktNo;
	}
	
	public String getTktSt() {
		return tktSt;
	}
	
	public void setTktSt(String tktSt) {
		this.tktSt = tktSt;
	}
	
	public Date getCreateDt() {
		return createDt;
	}
	
	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}
	
	public String getOperatorId() {
		return operatorId;
	}
	
	public void setOperatorId(String operatorId) {
		this.operatorId = operatorId;
	}
	
	public Long getPassengerId() {
		return passengerId;
	}
	
	public void setPassengerId(Long passengerId) {
		this.passengerId = passengerId;
	}
	
	public String getFlightOrderNo() {
		return flightOrderNo;
	}
	
	public void setFlightOrderNo(String flightOrderNo) {
		this.flightOrderNo = flightOrderNo;
	}
	
	public Set<TaxFeeDO> getTaxFees() {
		return taxFees;
	}
	
	public void setTaxFees(Set<TaxFeeDO> taxFees) {
		this.taxFees = taxFees;
	}

	@Override
	public String toString() {
		return   tktId + StringUtil.SEPARATOR + flightOrderNo+ StringUtil.SEPARATOR + passengerId
				+ StringUtil.SEPARATOR + DateUtil.toString(tktDate, StringUtil.DATEFORMATE)
				+ StringUtil.SEPARATOR + tktNo + StringUtil.SEPARATOR + StringUtil.replaceBlank(tktSt)
				+ StringUtil.SEPARATOR + DateUtil.toString(createDt, StringUtil.DATEFORMATE) + StringUtil.SEPARATOR + operatorId
				;
	}

}

